<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        span {
            display: block;
        }
    </style>
</head>

<body>
    <div class="div1">
        div1
    </div>
    <div class="div2">
        div2
    </div>
    <div class="div3">
        div3
        <span class="span1">1</span>
        <span>2</span>
        <span>3</span>

    </div>
</body>
<script src="js/jquery.min.js"></script>


<script>
    //
    /*
        filter     过滤 
        not         filter的反义词 不用过滤
        has         是否有存在该元素 
     */
    $(() => {
        // $('div').filter('.div1').css('backgroundColor', 'pink');
        // $('div').not('.div1').css('backgroundColor', 'pink');
        $('div').has('.span1').html('修改');
    })
</script>

</html>